9.8
CRITICAL CVSS 3.1
CVE-2025-56157
Dify PostgreSQL Default Credentials Exposure
Description

Default credentials in Dify thru 1.5.1. PostgreSQL username and password specified in the docker-compose.yaml file included in its source code. NOTE: the Supplier reports that the Docker configuration does not make PostgreSQL (on TCP port 5432) exposed by default in version 1.0.1 or later.

INFO

Published Date :

Dec. 18, 2025, 7:16 p.m.

Last Modified :

Jan. 29, 2026, 6:16 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-56157 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Dify dify
1 Langgenius dify
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Change default PostgreSQL credentials in docker-compose.yaml and secure access.
  • Update docker-compose.yaml with strong PostgreSQL credentials.
  • Restart Dify services using the updated configuration.
  • Remove or restrict access to docker-compose.yaml.
  • Avoid hardcoding sensitive information in configuration files.
Public PoC/Exploit Available at Github

CVE-2025-56157 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-56157 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-56157 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CatchClaw v5.3.0 — 多平台 AI Agent 安全评估工具,支持 OpenClaw / Dify / FastGPT / LobeChat / NextChat / AnythingLLM / Flowise / RagFlow 等 9 大平台。78 条 DAG 攻击链 | 78 个 Exploit 模块 | ATT&CK 阶段映射 | 多平台指纹识别 | Async Tokio 引擎 | 攻击图可视化

ai-security automation exploit nuclei-templates openclaw penetration-testing penetration-testing-tools rce reconnaissance red-team red-team-tools security security-tools ssrf vulnerability-scanner websocket dify lobechat multi-platform rust

Rust Python Makefile

Updated: 4 days, 3 hours ago
14 stars 2 fork 2 watcher
Born at : March 15, 2026, 3:12 p.m. This repo has been linked 17 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-56157 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-56157 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Jan. 29, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/langgenius/dify/issues/15285
    Added Reference https://github.com/langgenius/dify/pull/15286
    Added Reference https://github.com/langgenius/dify/pull/15286.diff
  • CVE Modified by [email protected]

    Jan. 28, 2026

    Action Type Old Value New Value
    Changed Description Default credentials in Dify thru 1.5.1. PostgreSQL username and password specified in the docker-compose.yaml file included in its source code. Default credentials in Dify thru 1.5.1. PostgreSQL username and password specified in the docker-compose.yaml file included in its source code. NOTE: the Supplier reports that the Docker configuration does not make PostgreSQL (on TCP port 5432) exposed by default in version 1.0.1 or later.
    Added Reference https://github.com/langgenius/dify/releases/tag/1.0.1
  • CVE Modified by [email protected]

    Jan. 22, 2026

    Action Type Old Value New Value
    Added Reference https://gist.github.com/Cristliu/298f51cbc72c45d91632cd0d65aa8161
  • Initial Analysis by [email protected]

    Dec. 30, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:* versions up to (including) 1.5.1
    Added Reference Type MITRE: http://dify.com Types: Broken Link
    Added Reference Type MITRE: https://gist.github.com/Cristliu/216ddbadaf3258498c93d408683ecabd Types: Exploit, Mitigation, Third Party Advisory
    Added Reference Type MITRE: https://github.com/langgenius/dify Types: Product
    Added Reference Type CISA-ADP: https://gist.github.com/Cristliu/216ddbadaf3258498c93d408683ecabd Types: Exploit, Mitigation, Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Dec. 19, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-798
    Added Reference https://gist.github.com/Cristliu/216ddbadaf3258498c93d408683ecabd
  • New CVE Received by [email protected]

    Dec. 18, 2025

    Action Type Old Value New Value
    Added Description Default credentials in Dify thru 1.5.1. PostgreSQL username and password specified in the docker-compose.yaml file included in its source code.
    Added Reference http://dify.com
    Added Reference https://gist.github.com/Cristliu/216ddbadaf3258498c93d408683ecabd
    Added Reference https://github.com/langgenius/dify
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.